//在职信息 处理窗体
Ext.define("SHApp.EmployeeInfo.InServiceInfo.Form", {
    extend: "BLBTSystem.Form",
    submitUrl: "api/inserviceinfo?format=json",
    winWidth: 665,
    winHeight: 265,
    initComponent: function () {
        Ext.apply(this);
        this.createItems();
        this.callParent(arguments);
    },
    createItems: function () {
        var me = this;
        this.items = [{
            width: 300,
            border: false,
            bodyStyle: "background:#DFE9F6",
            layout: { type: "vbox", align: "stretch" },
            items: [{
                xtype: "textfield",
                fieldLabel: "ID",
                name: "Id",
                hidden: true
            }, {
                fieldLabel: "<span style='color:red'>*</span>员工Id",
                allowBlank: false,
                blankText: "请输入员工Id!",
                xtype: "textfield",
                name: "EmpId",
                maxLength: 50,
                hidden: true
            }, {
                fieldLabel: "<span style='color:red'>*</span>员工姓名",
                allowBlank: false,
                blankText: "请输入员工姓名!",
                xtype: "textfield",
                name: "EmpName",
                maxLength: 50,
                readOnly: true
            }, {
                fieldLabel: "<span style='color:red'>*</span>所在公司",
                allowBlank: false,
                blankText: "请输入所在公司!",
                xtype: "textfield",
                name: "CustomerName",
                maxLength: 50
            }, {
                fieldLabel: "所在部门",
                xtype: "textfield",
                name: "Department",
                maxLength: 50
            }, {
                xtype: "datefield",
                fieldLabel: "入职日期",
                value: new Date(),
                name: "EntryDate",
                format: 'Y-m-d'
            }, {
                xtype: "datefield",
                fieldLabel: "离职日期",
                value: new Date(),
                name: "QuitDate",
                format: 'Y-m-d'
            }, {
                fieldLabel: "职务",
                xtype: "textfield",
                name: "Duties",
                maxLength: 50
            }]
        }, {
            width: 300,
            border: false,
            bodyStyle: "background:#DFE9F6",
            layout: { type: "vbox", align: "stretch" },
            items: [{
                fieldLabel: "职位",
                xtype: "textfield",
                name: "Position",
                maxLength: 50
            }, {
                fieldLabel: "汇报对象",
                xtype: "textfield",
                name: "ReportTo",
                maxLength: 50
            }, {
                fieldLabel: "工作状态",
                xtype: "textfield",
                name: "WorkingState",
                maxLength: 50
            }, {
                fieldLabel: "联系电话",
                xtype: "textfield",
                name: "PhoneNumber",
                maxLength: 50
            }, {
                fieldLabel: "办公电话",
                xtype: "textfield",
                name: "BusinessPhone",
                maxLength: 50
            }, {
                fieldLabel: "办公邮件",
                xtype: "textfield",
                name: "BusinessEmail",
                maxLength: 50
            }]
        }
		];
    }

})